package com.bv.hr.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bv.hr.system.entity.User;
import com.bv.hr.system.mapper.UserMapper;
import com.bv.hr.system.service.UserService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.HashSet;
import java.util.Set;

/**
 * @author CYT7
 * @version 1.0
 * @time 12月 24,2021
 * @describe user服务接口实现
 */
@Slf4j
@RequiredArgsConstructor
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper,User> implements UserService{
    private final UserMapper userMapper;
    @Override
    public User findByName(String username) {
        return userMapper.findByName(username);
    }
    @Override
    public Set<String> findPermissions(String userName) {
        //todo
        return new HashSet<>();
    }

}
